import numpy as np


class MemoryManager:
    """负责记忆样本管理"""

    def __init__(self, memory_size, fixed_memory=False, memory_per_class=None):
        self._memory_size = memory_size
        self._fixed_memory = fixed_memory
        self._memory_per_class = memory_per_class
        self._data_memory = np.array([])
        self._targets_memory = np.array([])

    def construct_exemplar_unified(self, data_manager, classes, network, extract_fn):
        # ...exemplar construction...
        pass

    def reduce_exemplar(self, data_manager, samples_per_class):
        # ...exemplar reduction...
        pass
